Wad2Tool Beta Version 0.8 Copyright (C) Richard Felker Wad2Tool is a program designed to manipulate WAD2 files, which contain the textures for Quake MAP levels. This version is only a beta, so it is missing a few features, but it is usable. I will include source with the real version. It might be helpful in case you would like to look at it or port it (which should be very easy). Wad2Tool is used from the command line. It is not for beginners. All options are CASE-SENSITIVE! (except maybe the name of the file on disk... :) Usage: wad2tool [options] is the name of the WAD2 you are using. It does not have to exist at first if you will be "-create"ing it. It will be used for all the commands you give Wad2Tool. Options: These options tell Wad2Tool what to do. If none are specified, it will list all the entries in the WAD2 file. -create Creates a new WAD2 file. If already exists, it is overwritten. Use this command with care! -addlump Adds a raw lump to the WAD2 file. The data is read from and it stored in the WAD2 as . is a single character telling the type of data. 'D' = texture and '@' = palette. Look in the Quake specs for more. -extlump Extracts a lump named and saves it as . -dellump Removes the lump named from the WAD2 file. This operation only removes it from the wad directory; it still takes up space. Use -rebuild (not yet implemented) to recover the space. -add Generates a texture from a bitmap file, , and stores is in the WAD2 as . The image is simply shrunk for the 3 smaller versions (doesn't look great). -addfull Generates a texture from 4 bitmap files whose names begin with followed by a number (0,1,2,3) and the extension ".bmp". The texture is stored in the WAD2 as . -addauto Will use a bitmap, to automaticly generate an antialiased MIP texture. The texture is added to the WAD2 as . NOTE: THIS OPERATION IS NOT YET IMPLEMENTED! -ext Generates bitmap files from the 4 parts of a texture named . They are saved as ?.bmp, where the ? is a number (0,1,2,3) indicating which size. -rebuild Will clean up any unused space in the WAD2. NOTE: THIS OPERATION IS NOT YET IMPLEMENTED! Until -rebuild is implemented, I recommend re"-create"ing the WAD2 with every change and adding all the data from a batch file. That's the way I use it. NOTE: Extracting a texture to a bitmap requires a palette. The palette should be in a lump named "palette" in the WAD2 file. If it is not, extract it from PAK0.PAK (with an unpacker) and put it in the WAD2 with -addlump. Oh, one last thing - you use this program at your own risk. I seriously doubt it will do anything to harm your system, but I cannot guarantee it. If it does, write and tell me and I'll try to help you fix it, if I can. Dalias, 71614.3257@compuserve.com